<template>
  <fieldset>
    <legend>其他组件2</legend>
    <modal :visible="isShow" @on-confirm="confirm" @on-cancel="cancel">
      <h1 slot="tip">警告⚠️</h1>
      <h2 slot="body">您确定需要花费20000万美元购买一架战斗机吗？</h2>
    </modal>
    <button @click="open">点击打开模态框</button>
  </fieldset>
</template>
<script>
import mixin from "./Mixmodal/mix";
import modal from "./modal2";
export default {
  mixins: [mixin],
  components: {
    modal,
  },
};
</script>
